package com.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * cart
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Cart implements Serializable {
    private Integer cId;

    /**
     * 用户关联
     */
    @JsonProperty(value = "uId")
    private String uId;

    /**
     * 商品关联
     */
    @JsonProperty(value = "pId")
    private String pId;

    /**
     * 购物车小计
     */
    @JsonProperty(value = "cCount")
    private BigDecimal cCount;

    /**
     * 商品数量
     */
    @JsonProperty(value = "cNum")
    private Integer cNum;

    private static final long serialVersionUID = 1L;
}